with open(r'廖雪峰python网站\IO编程\test.txt','r') as f:
    for line in f.readlines():
        print(line.strip())
with open(r'廖雪峰python网站\IO编程\test.txt','w') as f:
    f.write('你好，画手\n你好，画手')
